
public class Homework_605_11 {
	public static void main(String[] args) {
		// 1、2、4、9个数字，能组成多少个互不相同且无重复数字的三位数？都是多少？
		int arr[] = { 1, 2, 4, 9 };
		for (int i = 0, num = 0; i < arr.length; i++) {
			for (int j = 0; j < arr.length; j++) {
				for (int k = 0; k < arr.length; k++) {
					if (arr[i] == arr[j])
						continue;
					if(arr[j]==arr[k])
						continue;
					if (arr[i] == arr[k]) 
						continue;
					num++;
					System.out.println("第" + num + "个" + arr[i] + " " + arr[j] + " " + arr[k]);
				}
			}
		}
	}
}



